package com.yuyuan.blog.service;



import com.yuyuan.blog.domain.po.BlogAgreement;
import com.yuyuan.blog.domain.po.BlogDaily;
import com.yuyuan.blog.domain.po.BlogDeal;
import com.yuyuan.blog.domain.po.BlogPractice;
import com.yuyuan.common.domain.Result;

import java.io.IOException;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/6/12
 */
public interface IElasticSearch {
    void saveAgreementBlog(BlogAgreement blogAgreement);
    void saveDealBlog(BlogDeal blogDeal);
    void savePracticeBlog(BlogPractice blogPractice);
    void saveDailyBlog(BlogDaily blogDaily);
    void deleteAgreementBlog(Long id);
    void deleteDealBlog(Long id);
    void deletePracticeBlog(Long id);
    void deleteDailyBlog(Long id);
    Result searchAgreementBlog(String keyword, Short blogType) throws IOException;
    Result searchDealBlog(String keyword, Short type) throws IOException;
    Result searchPracticeBlog(String keyword) throws IOException;
    Result searchDailyBlog(String keyword, Short type) throws IOException;

}
